package com.austin.smp.service;

import com.austin.smp.common.api.ServerResponse;
import com.austin.smp.entity.Shipping;
import com.github.pagehelper.PageInfo;

/**
 * @author austin
 * @since austin/6/20 22:54
 */

public interface ShippingService {

    //添加地址
    ServerResponse add(Integer userId, Shipping shipping);

    //删除地址
    ServerResponse<String> delete(Integer userId, Integer shippingId);

    //更新地址
    ServerResponse update(Integer userId, Shipping shipping);

    //选中查看某个地址
    ServerResponse<Shipping> select(Integer userId, Integer shippingId);

    //地址列表
    ServerResponse<PageInfo> list(Integer userId, int pageNum, int pageSize);
}
